import pywinauto as pa
import pywinauto
c=pa.UIA_support
print(c)
# shit?
#d=pa.base_wrapper.BaseWrapper
# s=pywinauto.element_info.ElementInfo.control_id
s = pa.Desktop("uia")
print(dir(s),s.window)
# from pywinauto.Desktop import *
# print(globals())
# print(s)
# yes. we only have a few selected implementations.
# the universal part is MEM and HARDWARE.
# also NETWORK.
# s = pywinauto.controls.common_controls.TreeViewWrapper
# .tree_root()
# print(s,type(s))
# by making the entire thing unstable.
s = pywinauto.findwindows.enum_windows()
for x in s:
    print(x, type(x))
# it is integer here, not handle.
# not really the thing.
    # v=pywinauto.controls.hwndwrapper.DialogWrapper(x)
    # v = pywinauto.win32_element_info.HwndElementInfo(x)
    # still not deep.
    v = pywinauto.uia_element_info.UIAElementInfo(x)
    print(type(v.children()),v.children())
# here are a bunch of UIAELEMENTS.
    # info-> info.
    # # v = pywinauto.controls.hwndwrapper.HwndWrapper(v)
    # # k = pywinauto.controls.uiawrapper.UIAWrapper(v)
    # print(v, type(v))
    # this is a .NET api.
    # for y in v.children():
    #     print("ITERING:",y,type(y))
    # print(k)
    # z = v.dump_window()
    # print(z)
# 	print(v,type(v),v.client_area_rect())
# what are these shits?
